package com.dcivision.lucene;

import java.util.HashMap;
import java.util.Map;

/**
 * An bean object descript lucene index document.
 * @author Administrator
 *
 */
public class IndexDocument {
    
  private float score;
  
  private int id = 0;
  
  private String uid = null;
  
  private String documentName = null;
  
  private String documentType = null; //Add a field. EIP-1296 lee 07/01/18
  
  private String effective_start_date = null;//Add a field. EIP-1129  Jim Zhou   2007/05/22
  
  private String effective_end_date = null;//Add a field. EIP-1129  Jim Zhou   2007/05/22
  
  private String referenceNo = null;
  
  private String description = null;
  
  private String rootId = null;
  
  private String content = null;
  
  private String extension = null;
  
  private String itemSize = null;
  
  private String itemStatus = null;
  
  private String recordStatus = null;
  
  private String updaterId = null;
  
  private String updateDate = null;
  
  private Map defaultIndexes = null;
  
  private Map userDefinedIndexes = null;
  
  private String userDefinedIndexId = null;
  
  private String userDefinedIndexDetailIds = null;

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public Map getDefaultIndexes() {
    return defaultIndexes;
  }

  public void setDefaultIndexes(Map defaultIndexes) {
    this.defaultIndexes = defaultIndexes;
  }
  
  public void addDefaultIndex(Integer indexKey, String indexValue) {
    if (this.defaultIndexes==null) {
      this.defaultIndexes = new HashMap();
    }
    this.defaultIndexes.put(indexKey, indexValue);
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public String getDocumentName() {
    return documentName;
  }

  public void setDocumentName(String documentName) {
    this.documentName = documentName;
  }

  public String getExtension() {
    return extension;
  }

  public void setExtension(String extension) {
    this.extension = extension;
  }

  public String getItemSize() {
    return itemSize;
  }

  public void setItemSize(String itemSize) {
    this.itemSize = itemSize;
  }

  public String getItemStatus() {
    return itemStatus;
  }

  public void setItemStatus(String itemStatus) {
    this.itemStatus = itemStatus;
  }

  public String getRecordStatus() {
    return recordStatus;
  }

  public void setRecordStatus(String recordStatus) {
    this.recordStatus = recordStatus;
  }

  public String getReferenceNo() {
    return referenceNo;
  }

  public void setReferenceNo(String referenceNo) {
    this.referenceNo = referenceNo;
  }

  public String getRootId() {
    return rootId;
  }

  public void setRootId(String rootId) {
    this.rootId = rootId;
  }

  public float getScore() {
    return score;
  }

  public void setScore(float score) {
    this.score = score;
  }

  public String getUid() {
    return uid;
  }

  public void setUid(String uid) {
    this.uid = uid;
  }

  public String getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(String updateDate) {
    this.updateDate = updateDate;
  }

  public String getUpdaterId() {
    return updaterId;
  }

  public void setUpdaterId(String updaterId) {
    this.updaterId = updaterId;
  }

  public String getUserDefinedIndexDetailIds() {
    return userDefinedIndexDetailIds;
  }

  public void setUserDefinedIndexDetailIds(String userDefinedIndexDetailIds) {
    this.userDefinedIndexDetailIds = userDefinedIndexDetailIds;
  }

  public Map getUserDefinedIndexes() {
    return userDefinedIndexes;
  }

  public void setUserDefinedIndexes(Map userDefinedIndexes) {
    this.userDefinedIndexes = userDefinedIndexes;
  }
  
  public void addUserDefinedIndex(Integer indexKey, String indexValue) {
    if (this.userDefinedIndexes==null) {
      this.userDefinedIndexes = new HashMap();
    }
    this.userDefinedIndexes.put(indexKey, indexValue);
  }

  public String getUserDefinedIndexId() {
    return userDefinedIndexId;
  }

  public void setUserDefinedIndexId(String userDefinedIndexId) {
    this.userDefinedIndexId = userDefinedIndexId;
  }

  public String getDocumentType() {
    return documentType;
  }

  public void setDocumentType(String documentType) {
    this.documentType = documentType;
  }

  public String getEffective_end_date() {
    return effective_end_date;
  }

  public void setEffective_end_date(String effective_end_date) {
    this.effective_end_date = effective_end_date;
  }

  public String getEffective_start_date() {
    return effective_start_date;
  }

  public void setEffective_start_date(String effective_start_date) {
    this.effective_start_date = effective_start_date;
  }

}
